package com.example.fashion.android.entity;

import java.util.Date;

/**
 * Created by fashion on 2017/7/14.
 * 聊天信息实体类
 */

public class CharInfo extends BaseEntity{
    public static final int MESSAGE_TYPE_RECEIVE=0;     //接收的消息
    public static final int MESSAGE_TYPE_REPLY=1;       //回复的消息

    private int userId;     //发送者ID
    private String  charScript; //消息内容
    private Date time;      //消息时间
    private int sendType;   //发送类型(0:收到的消息  1:回复的消息)

    public CharInfo(int userId, String  charScript, Date time, int sendType) {
        this.userId = userId;
        this.charScript = charScript;
        this.time = time;
        this.sendType = sendType;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }

    public String getCharScript() {
        return charScript;
    }

    public void setCharScript(String charScript) {
        this.charScript = charScript;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public int getSendType() {
        return sendType;
    }

    public void setSendType(int sendType) {
        this.sendType = sendType;
    }
}
